//
//  XXListView.h
//  XX
//
//  Created by lly on 15/5/26.
//  Copyright (c) 2015年 lly. All rights reserved.
//

#import "XXView.h"


@protocol XXDoubleTableDelegate;


@interface XXListView : XXView <UITableViewDataSource, UITableViewDelegate>

//@property (nonatomic, strong) NSArray *titles;
//
//@property (nonatomic, strong) NSArray *titleCompareDataSourceList;

@property (nonatomic) CGFloat sectionTableWidth;

@property (nonatomic) CGFloat listTableWidth;

@property (nonatomic, strong)UITableView *sectionTable;

@property (nonatomic, strong)UITableView *listTable;

@property (nonatomic, assign) id <XXDoubleTableDelegate> delegate;

@property (nonatomic) NSInteger currentSection;



@end

@protocol XXDoubleTableDelegate <NSObject>

- (NSInteger)numberOfSection:(XXListView *)listView;

- (NSInteger)listView:(XXListView *)listView numberOfRowInSection:(NSInteger)section;

- (UITableViewCell *)sectionListView:(XXListView *)listView cellForSection:(NSInteger)section;

- (UITableViewCell *)listListView:(XXListView *)listView cellForRowAtIndexPath:(NSIndexPath *)indexPath;

- (void)listView:(XXListView *)listView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

- (CGFloat)heightForSectionAtIndex:(NSInteger)section;

- (CGFloat)listView:(XXListView *)listView heightForRowAtIndexPath:(NSIndexPath *)indexPath;

@end